package util

import "github.com/astaxie/beego/orm"

// 获取Mysql版本
func GetMysqlVersion() interface{} {
	o := orm.NewOrm()
	var maps []orm.Params
	_, _ = o.Raw("select version() from dual").Values(&maps)
	return maps[0]["version()"]
}
